package com.ruoyi.ocean.mapper;

import com.ruoyi.ocean.domain.OceanAccount;
import com.ruoyi.ocean.domain.vo.OceanAccountVo;
import com.ruoyi.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 广告主账户Mapper接口
 *
 * @author linziheng
 * @date 2024-05-09
 */
public interface OceanAccountMapper extends BaseMapperPlus<OceanAccountMapper, OceanAccount, OceanAccountVo> {

    int queryByAdvertiserId(Long advertiserId);

    List<OceanAccountVo> queryActiveList(String yesterdays);

    int count(@Param("accountType")String accountType, @Param("name")String name);

    List<OceanAccountVo> queryListByPage(@Param("i")int i, @Param("size")int size,@Param("type")String type,@Param("name")String name);

    void updateYes(@Param("agentId")Long agentId, @Param("yesterday")Date yesterday);
}
